package cn.caixiong.org.service;

import cn.caixiong.basic.utils.PageList;
import cn.caixiong.org.domain.Department;
import cn.caixiong.org.query.BaseQuery;

import java.util.List;

public interface IDepartmentService {
    //新增或修改
    void saveOrUpdata(Department department);
    //删除
    void deleteId(Long id);
    //查询所有
    List<Department> findAll();
    //查询单个
    void findOne(Long id);
    //查询部门经理与上级部门
    PageList<Department> findPage(BaseQuery query);
    //高级查询上级部门
    List<Department> parentDept();
    //批量删除
    void deleteAll(Long[] query);
    //查询级联
    List<Department> treeList();
}
